package sample.algo.sistr.algosample.algos;

/**
 * Created by sistr on 28/09/14.
 */

import android.content.Context;

import java.util.ArrayList;
import java.util.List;

import sample.algo.sistr.algosample.algos.arrays.Algo00;
import sample.algo.sistr.algosample.algos.arrays.Algo01;
import sample.algo.sistr.algosample.algos.arrays.Algo02;
import sample.algo.sistr.algosample.algos.arrays.Algo03;
import sample.algo.sistr.algosample.algos.graphs.AlgoDijkstra;

public class Algos {

    public static List<Algo> ALGOS = new ArrayList<Algo>();

    private static boolean initialised = false;

    public static void Init(Context context) {
        if(initialised)
            return;

        initialised = true;

        addItem(new AlgoDijkstra(context));
        addItem(new Algo00(context));
        addItem(new Algo01(context));
        addItem(new Algo02(context));
        addItem(new Algo03(context));
        addItem(new sample.algo.sistr.algosample.algos.avl.Algo00(context));
    }

    private static void addItem(Algo algo) {
        ALGOS.add(algo);
    }
}
